/*
 * Timer.cpp
 *
 *  Created on: 28/08/2014
 *      Author: santosma
 */

#include "Timer.h"

Timer::Timer(){}

Timer::~Timer(){}

void Timer::start(){
	clockinit = clock();
}

void Timer::pause(){
	clockend = clock();
	seconds += ((float)(clockend - clockinit))/CLOCKS_PER_SEC;
	clockinit = clock();
}

float Timer::stop(){
	clockend = clock();
	seconds += ((float)(clockend - clockinit))/CLOCKS_PER_SEC;
	return seconds;
}


